/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const chatRouter = {
  path: '/chat',
  component: Layout,
  redirect: 'noRedirect',
  name: 'Chat',
  alwaysShow: true,
  meta: {
    title: '聊天管理',
    icon: 'chat',
    permission: '/chat'
  },
  children: [
    {
      path: 'friends',
      component: () => import('@/views/chat/friends'),
      name: 'Friends',
      meta: { title: '好友聊天', icon: 'friends', noCache: true, permission: '/chat/friends' }
    }
  ]
}

export default chatRouter
